package com.service.thirddatacenter.hpool.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.service.thirddatacenter.enums.CommonStatusEnums;
import com.service.thirddatacenter.hpool.mapper.AccountThirdMapper;
import com.service.thirddatacenter.hpool.model.entity.AccountThirdEntity;
import com.service.thirddatacenter.hpool.service.AccountThirdService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 *
 * @date 2021-06-08 15:41:03
 */
@Service("accountThirdService")
public class AccountThirdServiceImpl extends ServiceImpl<AccountThirdMapper, AccountThirdEntity> implements AccountThirdService {


    @Override
    public List<AccountThirdEntity> listAllAccount() {
        return list(Wrappers.lambdaQuery(AccountThirdEntity.class)
                .eq(AccountThirdEntity::getAccountStatus, CommonStatusEnums.ACTIVE.getCode()));
    }
}
